package com.heima.article.jobs;

import com.heima.article.service.HotArticleService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.sound.sampled.Line;

/**
 * @author rookie001
 * @creat 2023-06-24-17:36
 */
@Component
@Slf4j
public class hotArticleJob {
    @Autowired
    private HotArticleService hotArticleService;
    @XxlJob("HotArticle")
    public void hotArticle() {
        log.info("热文章分值计算调度任务开始执行...");
        hotArticleService.computeHotArticle();
        log.info("热文章分值计算调度任务结束...");
    }
}
